from app import create_app
from app import db,models
from app.models import Ward,Bed,Doctor,Request
from app.routes.ward import bed_recommend
app = create_app()


# all_ward = Ward.query.all()
with app.app_context():
    bed_recommend("SN-20240922001")

    



if __name__ == '__main__':
    # with app.app_context():
    #     List_Doctor = models.Doctor.query.all()
    #     print(List_Doctor[0])
    #     print(type(List_Doctor[0]))
    #     print(dir(List_Doctor[0]))
    #     print(List_Doctor[0].__dict__)
    #     print(List_Doctor[0].doctor_id

    app.run(debug=True)
